#!/usr/bin/python
# -*- coding:UTF-8 -*-

import os

#check cmd if exsits
def exsits(cmd):
    exsits_cmd = 'which ' + cmd
    result = os.popen(exsits_cmd).readlines()
    return not result[0].endswith('not found')

def install(cmd,app):
    if cmd == 'cmd':
        if condition:
            pass
        else:
            pass
    elif cmd == 'brew':
        os.system('brew install'+app)
    elif cmd == 'brew cask':
        os.system('brew cask install '+app)
    elif cmd == 'mas':
        os.system('mas install '+app.id)
    else:
        brew
